package lion.framework.core.web.anno;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import lion.framework.core.web.request.RequestMethod;

/**
 * request path
 * 
 * @author lion
 * @email hl_0074@sina.com
 * @date 2015年3月18日
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface Path {

	/**
	 * request paths
	 */
	String[] value();

	/**
	 * is async request
	 */
	boolean async() default false;

	/**
	 * request method
	 */
	RequestMethod method() default RequestMethod.ALL;

	/**
	 * the path executor is singleton
	 */
	boolean singleton() default true;
}
